from rest_framework.serializers import ModelSerializer

from Scenes.models import TestScene, TestSceneToCase
from TestInterface.serializers import TestInterfaceCaseListSerializer, TestInterfaceCaseSerializer, \
    TestInterfaceCaseGetSerializer


class TestSceneSerializer(ModelSerializer):
    class Meta:
        model = TestScene
        fields = "__all__"


class TestSceneToCaseSerializer(ModelSerializer):
    class Meta:
        model = TestSceneToCase
        fields = "__all__"

class TestSceneRunSerializer(ModelSerializer):
    icase = TestInterfaceCaseGetSerializer()
    class Meta:
        model = TestSceneToCase
        fields = "__all__"


class TestSceneToCaseGetSerializer(ModelSerializer):
    icase = TestInterfaceCaseListSerializer()

    class Meta:
        model = TestSceneToCase
        fields = "__all__"
